﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using IView;
using Engine;
using System.Data;
using DataTransferObject;

namespace Presenter
{
    public class PresenterScheduleReport :Presenter
    {
        private IScheduleReport _ScheduleReportView;
        private JskeEngine _JskeEngine = JskeEngine.getInstance(dataServiceMode);
        public PresenterScheduleReport(IScheduleReport view, int dataAccessMode)
        {
            Presenter.changeDataServiceMode(dataAccessMode);
            _ScheduleReportView = view;
        }
        public DataTable loadTaskReport()
        {
            return _JskeEngine.loadTaskReport();

        }
        public DataTable loadSummaryReport()
        {
            return _JskeEngine.loadSummaryReport();
        }

        public Task getTaskByID(int taskID)
        {
            return _JskeEngine.getTaskByID(taskID);
        }
    }
}
